package duppentity;

import java.lang.reflect.Proxy;

/**
 * Dupp接口实例化
 * @author zhangzc@djcars.cn
 * @create 2016/8/8
 */
public class Dupps {

    /**
     * 获取Dupp接口
     * @param daoClazz
     * @param <T>
     * @return
     */
    public static <T> T get(Class<T> daoClazz) {
        return (T) Proxy.newProxyInstance(daoClazz.getClassLoader(), new Class[]{
                daoClazz
        }, new DuppImplement());
    }
}
